// web/src/app/(employee)/company/[id]/_components/company-description-card.tsx
import React from 'react';
import {Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle} from "@/components/ui/card";
import Preview from "@/components/learn/preview";

const CompanyDescriptionCard = ({description,location}: { description: string;location: string }) => {
    return (
        <Card className={`m-4`}>
            <CardHeader>
                <CardTitle>
                    <span className={`text-2xl`}>公司介绍</span>
                </CardTitle>
            </CardHeader>
            <CardContent>
                <CardDescription>
                    <Preview value={description}/>
                </CardDescription>
            </CardContent>
            <CardFooter>
                <strong>地址</strong> {location}
            </CardFooter>
        </Card>
    );
};

export default CompanyDescriptionCard;